package jobs.controller;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import jobs.pattern.design.ControllerComposite;
import jobs.pattern.design.DAOComposite;
import jobs.model.Year;
import jobs.model.dao.YearDAO;

/**
 * Controlador para la Entidad Años
 *
 * @author Paul Tamayo
 */
@ManagedBean(name = "years")
@SessionScoped
public class YearController extends ControllerComposite<Year> {

    @EJB
    public YearDAO dao;

    public YearController() {
        super(Year.class);
    }

    @Override
    public DAOComposite<Year> getDAO() {
        return dao;
    }
}
